@use "../variables" as var;

.modalBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 24px 24px calc(6px + var.$kofi-widget-height);
  background: rgba(127, 127, 127, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modalWindow {
  background: var(--c-background);
  color: var(--c-text);
  box-sizing: border-box;
  padding: 0;
  border-radius: 5px;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 10px 20px;
  border-bottom: var(--c-border) 1px solid;

  .modalTitle {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
  }

  .modalClose {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--c-text);
  }
}

.modalBody {
  flex-grow: 1;
  display: block;
  padding: 0 20px 10px;
  box-sizing: border-box;
  overflow: scroll;
}
